]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Generate all json files for the android directory in a go
authorCarlos Garnacho <carlosg@gnome.org>
Sun, 13 Aug 2017 21:29:02 +0000 (21:29 +0000)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 4 Mar 2019 20:55:15 +0000 (20:55 +0000)
cldr2json.py

index 0d4fcc6d5604e9f7290c7fc4e63c13d85c1e1125..b380ff21d8b82334bc36c9f28209685c269304b8 100755 (executable)
@@ -204,6 +204,5 @@ if __name__ == "__main__":
     if os.path.isfile(source):
         convert_file(source, destination)
     elif os.path.isdir(source):
-        os.chdir(source)
-        for path in glob.glob("*-t-k0-android.xml"):
+        for path in glob.glob(source + "/*-t-k0-android.xml"):
             convert_file(path, destination)